export const CityItem = (citys) => {
  const citylist = {}
  citys.forEach((item) => {
    const cityzimu = item.short.slice(0, 1).toUpperCase()
    if (citylist[cityzimu]) {
      citylist[cityzimu].push(item)
    } else {
      citylist[cityzimu] = [item]
    }
  })
  const cityindex = Object.keys(citylist).sort()
  return { citylist, cityindex }
}
